package com.hdoit.ares.logical.app.service.Impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hdoit.ares.logical.app.dao.IAppRemindMessageDao;
import com.hdoit.ares.logical.app.model.AppRemindMessage;
import com.hdoit.ares.logical.app.service.IAppRemindMessageService;
import com.tennetcn.common.dao.base.impl.SuperService;
/**
 * @author      xieqixiu
 * @email       
 * @createtime  2018年03月28日 15:18:36
 * @comment
 */
@Component
public class AppRemindMessageServiceImpl extends SuperService<AppRemindMessage> implements IAppRemindMessageService{

	private IAppRemindMessageDao appRemindMessageDao;

	public IAppRemindMessageDao getAppRemindMessageDao() {
		return appRemindMessageDao;
	}

	@Resource
	public void setAppRemindMessageDao(IAppRemindMessageDao appRemindMessageDao) {
		this.appRemindMessageDao = appRemindMessageDao;
	}

	@Override
	public List<AppRemindMessage> queryMessageList(String custId,Integer pageNum, Integer length) {
		
		return appRemindMessageDao.queryMessageList(custId,pageNum,length);
	}

	@Override
	public int selectUnReadCount(String custId) {
	
		return appRemindMessageDao.selectUnReadCount(custId);
	}

}